﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="conscot.aspx.cs" Inherits="WR.UI.MobWebApp.conscot" %>

<!doctype html>
<html lang="es" manifest="app.manifest"><head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	
	<title>Maestro Per&uacute;</title>
	<meta name="description" content="">
	<meta name="author" content="">
	
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	
	<link rel="shortcut icon" href="/favicon.ico">
	<link rel="apple-touch-icon" href="/apple-touch-icon.png">
	<link rel="stylesheet" href="css/style.css?v=2">
	<link rel="stylesheet" media="handheld" href="css/handheld.css?v=2">
	<script src="js/libs/modernizr-1.7.min.js" type="text/javascript"></script></head>
<body>
    <form id="frmMain" runat="server">
	<div id="container">
		<header>
		    <div id="head_title"><h1>Maestro Per&uacute; - Documentos</h1></div>
		    <br />
            <label id="lblErrorMsg" runat="server" class="errMsg"></label><label id="lblOkMsg" runat="server"></label>
		</header>
        <br />
        <article>
            <label>Clase doc:</label><br />
            <asp:DropDownList ID="lbAuart" runat="server" DataValueField="Codigo" DataTextField="Descripcion" Width="150" />
            <br />
            <label>Documento</label><br />
            <input id="txtNumdoc" runat="server" maxlength="10" size="10" />
            <br />
            <label>Fechas</label><br />
            <input id="txtFech1" runat="server" size="9" /> a <input id="txtFech2" runat="server" size="9" />
            <br /><br />
            <asp:Button ID="btnFind" runat="server" Text="Find" OnClick="btnFind_Click" />
        </article>
        <br />
        <article>
            <asp:ListView ID="lvOfertas" runat="server">
                <LayoutTemplate>
                    <table runat="server" id="table1">
                        <tr>
                            <th><img src="img/email.png" alt="Enviar" /></th><th>Doc.</th>
                            <th>Solicitante</th><th>Usuario</th><th>Fecha</th><th>Total</th>
                        </tr>
                        <tr runat="server" id="itemPlaceholder"></tr>
                    </table>
                </LayoutTemplate>
                <ItemTemplate>
                    <tr id="Tr1" runat="server">
                      <td id="Td1" runat="server">
                        <a href="send.aspx?nd=<%#Eval("NumDoc") %>"><img src="img/email.png" alt="Enviar" /></a>
                      </td>
                      <td id="Td2" runat="server">
                        <a href="crearcot.aspx?oid=<%#Eval("NumDoc") %>&cod=<%#Eval("Cliente.Codigo") %>"><%#Eval("NumDoc")%></a>
                      </td>
                      <td id="Td3" runat="server">
                        <%#Eval("Cliente.Descripcion")%>
                      </td>
                      <td id="Td6" runat="server">
                        <%#Eval("Usuario.Usuario")%>
                      </td>
                      <td id="Td4" runat="server" style="text-align:center;">
                        <%#Eval("FechaDoc")%>
                      </td>
                      <td id="Td5" runat="server" style="text-align:right;">
                        <%#Eval("Total", "{0:0,0.00}")%>
                      </td>
                    </tr>
                </ItemTemplate>
                <EmptyDataTemplate>
                    No se encontraron resultados para su b&uacute;squeda.
                </EmptyDataTemplate>
            </asp:ListView>
        </article>
        
        <br />
		<footer>
		    <nav>
                <a href="main.aspx">Materiales</a> | 
                <a href="crearcot.aspx">Crear/Modif doc.</a> | 
                <a href="conscot.aspx">Consulta doc.</a> | 
                <a href="login.aspx">Salir</a>
            </nav>
            <br />
            <p>Copyright &copy; 2011 Maestro Per&uacute;</p>
            <p>Desarrollado por <a href="http://www.crystalisconsulting.com">Crystalis Consulting</a></p>
		</footer>
	</div>
    </form>
	
	<%--<script src="//ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>--%>
	<script src="js/libs/jquery-1.5.1.min.js" type="text/javascript"></script>
	<script type="text/javascript">!window.jQuery && document.write(unescape('%3Cscript src="js/libs/jquery-1.5.1.min.js"%3E%3C/script%3E'))</script>
	<script src="js/plugins.js" type="text/javascript"></script>
	<script src="js/script.js" type="text/javascript"></script>
	<!--[if lt IE 7 ]>
	<script src="js/libs/dd_belatedpng.js"></script>
	<script> DD_belatedPNG.fix('img, .png_bg');</script>
	<![endif]--></body>
</html>